package com.jr.dao;


import com.jr.entry.SupplierBlackList;
import com.jr.pojo.InformationInBlackMess;
import com.jr.util.BlackPageHelper;
import com.jr.util.WhitePageHelper;

import java.util.ArrayList;

public interface SupplierBlackListDao {
    /**
     * 增加黑名单信息
     * @param supplierBlackList
     * @return
     */
    boolean insertSupplierBlackList(SupplierBlackList supplierBlackList);


    /**
     * 通过企业id和供应商id删除黑名单信息
     * @param enterpriseId
     * @param supplierId
     * @return
     */
    boolean deleteSupplierBlackListByEnterpriseIdAndSupplierId(String enterpriseId,String supplierId);


    /**
     * 通过账号和输入的企业名多表查询某企业黑名单信息
     * @param account
     * @param name
     * @return
     */
    ArrayList<InformationInBlackMess> selectSupplierBlackListByAccountAndEnterpriseName(String account, String name);

    /**
     * 查找所有的黑名单信息
     * @return
     */
    ArrayList<InformationInBlackMess> selectAllSupplierBlackList(String account, String name, BlackPageHelper blackPageHelper);


    int selectSize(String account, String name);
}
